import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useMenuStore = defineStore('menu', () => {

  const menuData = ref([])
  
  function saveMenuData(payload:any) {
    menuData.value = payload;
  }

  return { menuData, saveMenuData }
},{ 
  persist:true  //开启持久化存储
})
